package cn.car91.bean;

import java.io.Serializable;

import com.lidroid.xutils.db.annotation.Foreign;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.Table;


/**
 * 区类
 *
 * @author 周海刚
 * @Date 2014.9.11
 */
@Table(name = "tab_district")
public class District implements Serializable {
    @Id(column = "did")
    private int did;    //数据库主键
    private String name;    //区名
    private String position;    //默认坐标
    @Foreign(column = "cid", foreign = "cid")
    private City city;    //所属市

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }
}
